<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>浑水摸鱼小组</title>

<link rel="stylesheet" href="css/style.css">
<style type="text/css">
	.pg{
		width: 100%;
		color: #Fff;
		background-color: black;
	}
</style>

</head>
<body>

<div id="canvas">
 <p class="pg">正在前往宇宙星空<span id="con">15</span>秒...<p>
</div>

<script src='js/three.min.js'></script>
<script src="js/script.js"></script>
<script>

        var con = document.getElementById("con");

        var i = 15;

        var num = 0;

        timer = setInterval(function(){
                num = --i;

                if(num<=0){
                        clearInterval(timer);

                        location = "main.html";

                }

                con.innerHTML = num;

        },1000);

</script>

</body>
</html>